package com.mcf.xiaolinju.controller;


import com.mcf.xiaolinju.entity.TbProvince;
import com.mcf.xiaolinju.service.impl.TbProvinceServiceImpl;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author mcf
 * @since 2022-01-04
 */
@CrossOrigin
@RestController
@RequestMapping("/xiaolinju/tb-province")
public class TbProvinceController {
    @Resource
    TbProvinceServiceImpl tbProvinceService;
    //查询全表
    @RequestMapping("/selectAll")
    public List<TbProvince> selectAll(){
        return  tbProvinceService.list();
    }


}
